const install = (Vue, vm) => {
	
	// 获取滚动公告
	let getPosterList = (params = {}) => vm.$u.get('/api/common/getPosterList');
	
	// 获取轮播图
	let getSwiperList = (params = {}) => vm.$u.get('/api/common/getSwiperList');
	
	// 短信验证码请求
	let sendSms = (params = {}) => vm.$u.post('/api/common/sendSms', params);
	
	// 体温上报
	let saveForm7 = (params = {}) => vm.$u.post('/api/index/form7', params);
	
	// 疫苗异常反应上报
	let saveForm8 = (params = {}) => vm.$u.post('/api/index/form8', params);
	
	vm.$u.api = {
		getPosterList,
		getSwiperList,
		sendSms,
		saveForm7,
		saveForm8,
	};
	
}

export default {
	install
}